import request from '@/utils/request'
// tree公共选择组件
export default {

  /**
   * 分页组织机构44
   * @param data
   */
  queryBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/addressBookController/queryBook',
      method: 'post',
      data
    })
  },
  /**
   * 组织机构
   * @param data
   */
  getGroup (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/Subscriber/getGroup',
      method: 'post',
      data
    })
  },
  /**
   *群组
   * @param data
   */
  getTalk (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/Subscriber/getTalk',
      method: 'post',
      data
    })
  },
  /**
   *系统通讯录
   * @param data
   * {"fleetId":67,"pageNum":1,"pageSize":10000}
   */
  getSystemAddressBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/systemAddressBookManage/getSystemAddressBook',
      method: 'post',
      data
    })
  },
  /**
   *获取系统通讯录成员
   * @param data
   * {"groupId":1}
   */
  getMemberTableData (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/systemAddressBookManage/getMemberTableData',
      method: 'post',
      data
    })
  },
  /**
   *获取系统通讯录成员2
   * @param data
   * {"groupId":1}
   */
  getFleetAndSub (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleetAndSub',
      method: 'post',
      data
    })
  },
  /**
   *个人通讯录
   * @param data
   * {"userId":1603013,"pageNum":1,"pageSize":10000}
   */

  getPersonalAddressBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/getPersonalAddressBook',
      method: 'post',
      data
    })
  },
  /**
   * 成员管理
   * @param data
   */
  queryGroupMember (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/queryGroupMember',
      method: 'post',
      data
    })
  } ,
  /**
   * 个人通讯录 自定义组 成员管理
   * @param data
   */
  queryCustomizeGrpMemA (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/queryCustomizeGrpMem',
      method: 'post',
      data
    })
  },
  /**
   * 拨号，获取人员信息
   * @param uid//用户号码
   */
  queryNumAndNameByUid (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/Subscriber/queryNumAndNameByUid',
      method: 'post',
      data
    })
  },
  /**
   * 拨号，通过分机号获取人员信息
   * @param uid//用户号码
   */
  queryByExtNumber (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/addressBookController/queryByExtNumber',
      method: 'post',
      data
    })
  },

  getFleet (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/fleetManage/getFleet',
      method: 'post',
      data
    })
  },  getFleetUser (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/userManage/getFleetUser',
      method: 'post',
      data
    })
  },
  //查询集团的子集团和调度员
  getAllChildFleetAndUser (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/userManage/getAllChildFleetAndUser',
      method: 'post',
      data
    })
  },

}
